userList = 
    {
        pageNum: 3,
        total: 34,
        data: [{
                nickName: "tmxk3",
                name: "张三",
                actor: '病号',
            },
            {
                nickName: "tmxk13",
                name: "张三2",
                actor: '医生'
            },
            {
                nickName: "tmxk2",
                name: "张三3",
                actor: 'admin'
            },
            {
                nickName: "tmxk3",
                name: "张三5",
                actor: '病号'
            },
            {
                nickName: "tmxk0",
                name: "张三5",
                actor: '病号'
            }
        ]
    }



Mock.mock(/\/pages\/queryAll/, 'post', function (e) {
    // var urlArr = e.url.split('?')[1]
    // var arr1 = urlArr.split('&')
    // var arr2 = {}
    // for (let i = 0; i < arr1.length; i++) {
    //     var arrs = arr1[i].split("=")
    //     arr2[arrs[0]] = arrs[1]
    // }
    // data = {}
    // for (let i = 0; i < userList.length; i++) {
    //     if (parseInt(userList[i].pageNum) == parseInt(arr2.pageNum)) {
    //         data = userList[i]
    //         console.log(userList[i])
    //     } else {
    //         data = {
    //             err: "当前页面不存在"
    //         }
    //     }
    // }

    
    return userList
})